package com.databing.demo.greendao.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 创建日期：1/29/21
 * 描述:曝光量数据库
 * 作者:支豪亮
 */
@Entity(nameInDb = "AL_STS_ACTION")
public class StsActionBean {
    /**
     * 自增长id
     */
    @Id(autoincrement = true)
    private Long id;
    /**
     * 埋点的id
     */
    private String code;
    /**
     * 埋点的内容
     */
    private String content;
    /**
     * 曝光的时间
     */
    private Long time;
    /**
     * 0表示新建的曝光，在网络提交中为1，提交成功就会进行物理删除
     */
    private Integer state = 0;
    @Generated(hash = 1840352805)
    public StsActionBean(Long id, String code, String content, Long time,
            Integer state) {
        this.id = id;
        this.code = code;
        this.content = content;
        this.time = time;
        this.state = state;
    }

    public StsActionBean(String code, String content) {
        this.code = code;
        this.content = content;
        this.time = System.currentTimeMillis();
    }


    @Generated(hash = 2083464430)
    public StsActionBean() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public String getCode() {
        return this.code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getContent() {
        return this.content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public long getTime() {
        return this.time;
    }
    public int getState() {
        return this.state;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}